import request from '@/utils/request'

// 给用户分配角色
export const AssignRoles2User = (userId, roleIds) => {
  return request({
    url: `/admin/system/userRole/aggignRoles2User/${userId}`,
    method: 'POST',
    // {keyword:xx , createTimeStart:xxx}
    data: roleIds,
  })
}
